<?php

/**
 * Subclass for representing a row from the 'page' table.
 *
 * 
 *
 * @package lib.model
 */ 
class Page extends BasePage
{
  public function getCultures()
  {
    $c = new Criteria();
    $c->add(PageI18nPeer::ID, $this->getId());
    $i18ns = PageI18nPeer::doSelect($c);
    
    $languages = array();
    foreach ($i18ns as $i18n)
    {
      $languages[] = $i18n->getCulture();
    }
    return $languages;    
  }
}
